const { version } = getVersion();
const v4 = {
  titleStyle: {
    background: `url(${require(PIC_URL + '/tlbypcWeb/pulicImg/t-v-1.png')})`,
    color: "#36374E"
  },
  titleText: {},
  touguIcon: require(PIC_URL + '/tlbypcWeb/pulicImg/tougu-icon-2.png'),
  touguName: "私密投顾"
};
const v5 = {
  titleStyle: {
    background: `url(${require(PIC_URL + '/tlbypcWeb/pulicImg/t-v-2.png')})`,
    color: "#FFFFFF"
  },
  titleText: { textShadow: "2px 1px 2px rgba(89, 48, 18, 0.4)" },
  touguIcon: require(PIC_URL + '/tlbypcWeb/pulicImg/tougu-icon-1.png'),
  touguName: "尊享投顾"
};
const v6 = {
  titleStyle: {
    background: `url(${require(PIC_URL + '/tlbypcWeb/pulicImg/t-v-2.png')})`,
    color: "#FFFFFF"
  },
  titleText: { textShadow: "2px 1px 2px rgba(89, 48, 18, 0.4)" },
  touguIcon: require(PIC_URL + '/tlbypcWeb/pulicImg/tougu-icon-1.png'),
  touguName: "尊享投顾"
};
const config = {
  4: v4,
  5: v5,
  6: v6
};

export default config[version];

// 从URL中获取版本号
function getVersion() {
  let p = { version: 4 };
  location.search.replace(/([^?&=]+)=([^&]+)/g, (_, k, v) => (p[k] = v));
  return p;
}
